<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - id:000977,sync:fuzzer2,src:001052.lcov_info_final - include/yaml-cpp/node/detail/node_ref.h</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../../index.html">top level</a> - <a href="index.html">include/yaml-cpp/node/detail</a> - node_ref.h<span style="font-size: 80%;"> (source / <a href="node_ref.h.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">id:000977,sync:fuzzer2,src:001052.lcov_info_final</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">24</td>
            <td class="headerCovTableEntry">40</td>
            <td class="headerCovTableEntryLo">60.0 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2016-03-13 10:42:47</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">18</td>
            <td class="headerCovTableEntry">38</td>
            <td class="headerCovTableEntryLo">47.4 %</td>
          </tr>
          <tr><td><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : #ifndef VALUE_DETAIL_NODE_REF_H_62B23520_7C8E_11DE_8A39_0800200C9A66</a>
<span class="lineNum">       2 </span>            : #define VALUE_DETAIL_NODE_REF_H_62B23520_7C8E_11DE_8A39_0800200C9A66
<span class="lineNum">       3 </span>            : 
<span class="lineNum">       4 </span>            : #if defined(_MSC_VER) ||                                            \
<span class="lineNum">       5 </span>            :     (defined(__GNUC__) &amp;&amp; (__GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &gt;= 4) || \
<span class="lineNum">       6 </span>            :      (__GNUC__ &gt;= 4))  // GCC supports &quot;pragma once&quot; correctly since 3.4
<span class="lineNum">       7 </span>            : #pragma once
<span class="lineNum">       8 </span>            : #endif
<span class="lineNum">       9 </span>            : 
<span class="lineNum">      10 </span>            : #include &quot;yaml-cpp/dll.h&quot;
<span class="lineNum">      11 </span>            : #include &quot;yaml-cpp/node/type.h&quot;
<span class="lineNum">      12 </span>            : #include &quot;yaml-cpp/node/ptr.h&quot;
<span class="lineNum">      13 </span>            : #include &quot;yaml-cpp/node/detail/node_data.h&quot;
<span class="lineNum">      14 </span>            : 
<a name="15"><span class="lineNum">      15 </span>            : namespace YAML {</a>
<span class="lineNum">      16 </span>            : namespace detail {
<a name="17"><span class="lineNum">      17 </span><span class="lineCov">     136195 : class node_ref {</span></a>
<span class="lineNum">      18 </span>            :  public:
<span class="lineNum">      19 </span><span class="lineCov">     136195 :   node_ref() : m_pData(new node_data) {}</span>
<span class="lineNum">      20 </span>            :   node_ref(const node_ref&amp;) = delete;
<a name="21"><span class="lineNum">      21 </span>            :   node_ref&amp; operator=(const node_ref&amp;) = delete;</a>
<a name="22"><span class="lineNum">      22 </span>            : </a>
<a name="23"><span class="lineNum">      23 </span><span class="lineCov">     612177 :   bool is_defined() const { return m_pData-&gt;is_defined(); }</span></a>
<a name="24"><span class="lineNum">      24 </span><span class="lineNoCov">          0 :   const Mark&amp; mark() const { return m_pData-&gt;mark(); }</span></a>
<a name="25"><span class="lineNum">      25 </span><span class="lineCov">     453190 :   NodeType::value type() const { return m_pData-&gt;type(); }</span></a>
<a name="26"><span class="lineNum">      26 </span><span class="lineCov">      13697 :   const std::string&amp; scalar() const { return m_pData-&gt;scalar(); }</span></a>
<span class="lineNum">      27 </span><span class="lineCov">      31218 :   const std::string&amp; tag() const { return m_pData-&gt;tag(); }</span>
<a name="28"><span class="lineNum">      28 </span><span class="lineCov">      17521 :   EmitterStyle::value style() const { return m_pData-&gt;style(); }</span></a>
<a name="29"><span class="lineNum">      29 </span>            : </a>
<span class="lineNum">      30 </span><span class="lineCov">     136195 :   void mark_defined() { m_pData-&gt;mark_defined(); }</span>
<a name="31"><span class="lineNum">      31 </span><span class="lineNoCov">          0 :   void set_data(const node_ref&amp; rhs) { m_pData = rhs.m_pData; }</span></a>
<a name="32"><span class="lineNum">      32 </span>            : </a>
<a name="33"><span class="lineNum">      33 </span><span class="lineCov">     136195 :   void set_mark(const Mark&amp; mark) { m_pData-&gt;set_mark(mark); }</span></a>
<a name="34"><span class="lineNum">      34 </span><span class="lineCov">      63996 :   void set_type(NodeType::value type) { m_pData-&gt;set_type(type); }</span></a>
<a name="35"><span class="lineNum">      35 </span><span class="lineCov">      86374 :   void set_tag(const std::string&amp; tag) { m_pData-&gt;set_tag(tag); }</span></a>
<a name="36"><span class="lineNum">      36 </span><span class="lineCov">      49821 :   void set_null() { m_pData-&gt;set_null(); }</span></a>
<span class="lineNum">      37 </span><span class="lineCov">      22378 :   void set_scalar(const std::string&amp; scalar) { m_pData-&gt;set_scalar(scalar); }</span>
<span class="lineNum">      38 </span><span class="lineCov">      63996 :   void set_style(EmitterStyle::value style) { m_pData-&gt;set_style(style); }</span>
<a name="39"><span class="lineNum">      39 </span>            : </a>
<span class="lineNum">      40 </span>            :   // size/iterator
<a name="41"><span class="lineNum">      41 </span><span class="lineNoCov">          0 :   std::size_t size() const { return m_pData-&gt;size(); }</span></a>
<span class="lineNum">      42 </span>            : 
<span class="lineNum">      43 </span><span class="lineCov">      35042 :   const_node_iterator begin() const {</span>
<a name="44"><span class="lineNum">      44 </span><span class="lineCov">      35042 :     return static_cast&lt;const node_data&amp;&gt;(*m_pData).begin();</span></a>
<span class="lineNum">      45 </span>            :   }
<a name="46"><span class="lineNum">      46 </span><span class="lineNoCov">          0 :   node_iterator begin() { return m_pData-&gt;begin(); }</span></a>
<span class="lineNum">      47 </span>            : 
<span class="lineNum">      48 </span><span class="lineCov">     106252 :   const_node_iterator end() const {</span>
<a name="49"><span class="lineNum">      49 </span><span class="lineCov">     106252 :     return static_cast&lt;const node_data&amp;&gt;(*m_pData).end();</span></a>
<span class="lineNum">      50 </span>            :   }
<span class="lineNum">      51 </span><span class="lineNoCov">          0 :   node_iterator end() { return m_pData-&gt;end(); }</span>
<a name="52"><span class="lineNum">      52 </span>            : </a>
<span class="lineNum">      53 </span>            :   // sequence
<span class="lineNum">      54 </span><span class="lineCov">      24906 :   void push_back(node&amp; node, shared_memory_holder pMemory) {</span>
<a name="55"><span class="lineNum">      55 </span><span class="lineCov">      24906 :     m_pData-&gt;push_back(node, pMemory);</span></a>
<span class="lineNum">      56 </span><span class="lineCov">      24906 :   }</span>
<span class="lineNum">      57 </span><span class="lineCov">      33796 :   void insert(node&amp; key, node&amp; value, shared_memory_holder pMemory) {</span>
<span class="lineNum">      58 </span><span class="lineCov">      33796 :     m_pData-&gt;insert(key, value, pMemory);</span>
<span class="lineNum">      59 </span><span class="lineCov">      33796 :   }</span>
<span class="lineNum">      60 </span>            : 
<a name="61"><span class="lineNum">      61 </span>            :   // indexing</a>
<span class="lineNum">      62 </span>            :   template &lt;typename Key&gt;
<span class="lineNum">      63 </span><span class="lineNoCov">          0 :   node* get(const Key&amp; key, shared_memory_holder pMemory) const {</span>
<span class="lineNum">      64 </span><span class="lineNoCov">          0 :     return static_cast&lt;const node_data&amp;&gt;(*m_pData).get(key, pMemory);</span>
<a name="65"><span class="lineNum">      65 </span>            :   }</a>
<span class="lineNum">      66 </span>            :   template &lt;typename Key&gt;
<span class="lineNum">      67 </span><span class="lineNoCov">          0 :   node&amp; get(const Key&amp; key, shared_memory_holder pMemory) {</span>
<span class="lineNum">      68 </span><span class="lineNoCov">          0 :     return m_pData-&gt;get(key, pMemory);</span>
<a name="69"><span class="lineNum">      69 </span>            :   }</a>
<span class="lineNum">      70 </span>            :   template &lt;typename Key&gt;
<span class="lineNum">      71 </span><span class="lineNoCov">          0 :   bool remove(const Key&amp; key, shared_memory_holder pMemory) {</span>
<span class="lineNum">      72 </span><span class="lineNoCov">          0 :     return m_pData-&gt;remove(key, pMemory);</span>
<span class="lineNum">      73 </span>            :   }
<span class="lineNum">      74 </span>            : 
<span class="lineNum">      75 </span>            :   node* get(node&amp; key, shared_memory_holder pMemory) const {
<a name="76"><span class="lineNum">      76 </span>            :     return static_cast&lt;const node_data&amp;&gt;(*m_pData).get(key, pMemory);</a>
<span class="lineNum">      77 </span>            :   }
<span class="lineNum">      78 </span><span class="lineNoCov">          0 :   node&amp; get(node&amp; key, shared_memory_holder pMemory) {</span>
<span class="lineNum">      79 </span><span class="lineNoCov">          0 :     return m_pData-&gt;get(key, pMemory);</span>
<span class="lineNum">      80 </span>            :   }
<span class="lineNum">      81 </span>            :   bool remove(node&amp; key, shared_memory_holder pMemory) {
<span class="lineNum">      82 </span>            :     return m_pData-&gt;remove(key, pMemory);
<span class="lineNum">      83 </span>            :   }
<span class="lineNum">      84 </span>            : 
<a name="85"><span class="lineNum">      85 </span>            :   // map</a>
<span class="lineNum">      86 </span>            :   template &lt;typename Key, typename Value&gt;
<span class="lineNum">      87 </span><span class="lineNoCov">          0 :   void force_insert(const Key&amp; key, const Value&amp; value,</span>
<span class="lineNum">      88 </span>            :                     shared_memory_holder pMemory) {
<span class="lineNum">      89 </span><span class="lineNoCov">          0 :     m_pData-&gt;force_insert(key, value, pMemory);</span>
<span class="lineNum">      90 </span><span class="lineNoCov">          0 :   }</span>
<span class="lineNum">      91 </span>            : 
<span class="lineNum">      92 </span>            :  private:
<span class="lineNum">      93 </span>            :   shared_node_data m_pData;
<span class="lineNum">      94 </span>            : };
<span class="lineNum">      95 </span>            : }
<span class="lineNum">      96 </span>            : }
<span class="lineNum">      97 </span>            : 
<span class="lineNum">      98 </span>            : #endif  // VALUE_DETAIL_NODE_REF_H_62B23520_7C8E_11DE_8A39_0800200C9A66
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.11</a></td></tr>
  </table>
  <br>

</body>
</html>
